package com.ice.body.business.service.impl;
import com.ice.body.business.dao.CabinetMapper;
import com.ice.body.business.model.Cabinet;
import com.ice.body.business.service.CabinetService;
import com.ice.base.dao.BaseDao;
import com.ice.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
 * Created with GuoYanBin.
 * Description:危化品柜 serviceImpl
 * Date: 2022-10-21
 * Time: 04:11
 */
@Service
public class CabinetServiceImpl extends BaseServiceImpl<Cabinet> implements CabinetService{
    @Resource 
    private CabinetMapper cabinetMapper;
    @Override
    public BaseDao<Cabinet> getBaseDao() {
        return cabinetMapper;
    }

    @Override
    public Cabinet getBySerialNo(String serialNo) {
        return cabinetMapper.getBySerialNo(serialNo);
    }

    @Override
    public Cabinet getByCabNo(String cabNo) {
        return cabinetMapper.getByCabNo(cabNo) ;
    }
}
